package org.zjvis.datascience.common.dto;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;


import java.time.LocalDateTime;

@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class ModelOnlineDTO extends BaseDTO {

    private Long id;//主键

    private Long userId;//社区用户id

    private Long uid;//模型id，不同版本的模型id一样，id不一样

    private int type;//算法或模型

    private String name;//模型名称

    private String relatedAlgo;//关联算法名称

    private String owner;//作者

    private String profile;//头像信息

    private String workplace;//工作单位

    private String icon;//图标

    private String cover;//封面图片

    private boolean publicModel = true;//是否公开代码或模型

    private boolean publicData = true;//是否公开数据

    private String field;//领域

    private String summary;//摘要

    private String keyword;//关键字

    private String modelDesc;//模型详细说明

    private Long star;//收藏数

    private boolean favor = false;//是否已收藏

    private Long watch;//点击量

    private Long download;

    private String version;//版本

    private int numVersion;//有几个版本

    private boolean topVersion = true;

    private String params;//参数

    private String metric;//指标

    private String config;//配置

    private int status;//审核状态

    private String comment;//审核评论

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publicTime;//发布时间

    private String resource;//相关资料

    private String reference;//参考文献

    private String instruction;//使用说明

    private boolean trainable;//是否可训练

    private int modelNew;

    private boolean install;


}
